Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 7 - Finder Interface Reference / Finder Interface Types and Constants
The Folder Descriptor Structure


Folder Descriptor Class Constants

NEW WITH MAC OS 8

Constants of type FolderClass are used in the foldClass field to specify how the foldLocation field of the folder descriptor structure should be interpreted.

IMPORTANT
Developers can only create new folder descriptors with a class of kRelativeFolder.
enum {
   kRelativeFolder = 'relf',
   kSpecialFolder  = 'spcf'
};
typedef OSType FolderClass;

Constant descriptions

kRelativeFolder
This constant indicates that the foldLocation field contains the folder type of the parent folder, and the name field contains the name of the folder. Most folder descriptors are for relative folders.
kSpecialFolder
Special folders are in locations hardwired into the Folder Manager, and can be found using special rules. Examples of special folders include a disk's root directory and System Folder. This constant indicates that the folder is located algorithmically, according to the constant supplied as the foldLocation field (kBlessedFolder or kRootFolder). Developers cannot create new folder descriptors of the kSpecialFolder class.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998